package cn.coco.jf.fw.core.config;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.template.source.ISource;

public class Mapping {
    ActiveRecordPlugin arp;
    
    public Mapping(ActiveRecordPlugin arp){
        this.arp = arp;
    }
	
    public void addMapping(String tableName, String primaryKey, Class<? extends Model<?>> modelClass){
        arp.addMapping(tableName, primaryKey, modelClass);
    }
    
    public void addSqlTemplate(ISource sqlTemplate){
        arp.addSqlTemplate(sqlTemplate);
    }
}
